From cca8345e6c08c44852158c1065eb34302308aaee Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sun, 12 Nov 2006 07:42:26 +0000 Subject: [PATCH] Fix waypoint transformation for routes and tracks. --- transform.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/transform.c b/transform.c index c52843c32..9d47f4360 100644 --- a/transform.c +++ b/transform.c @@ -98,7 +98,12 @@ static void transform_any_disp_wpt_cb(const waypoint *wpt) { waypoint *temp = waypt_dupe(wpt); - waypt_add(temp); + if (current_target == 'R') + route_add_wpt(current_rte, temp); + else if (current_target == 'T') + track_add_wpt(current_trk, temp); + else + waypt_add(temp); } static void -- 2.30.2